require("../../@babel/runtime/helpers/Arrayincludes"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "components/popup-toast/index" ], {
    2343: function(t, n, o) {},
    "4a19": function(t, n, o) {
        o.r(n);
        var e = o("d7b4"), i = o("8e24");
        for (var a in i) [ "default" ].indexOf(a) < 0 && function(t) {
            o.d(n, t, function() {
                return i[t];
            });
        }(a);
        o("d6ae");
        var r = o("f0c5"), u = Object(r.a)(i.default, e.b, e.c, !1, null, "32ddf26a", null, !1, e.a, void 0);
        n.default = u.exports;
    },
    "8e24": function(t, n, o) {
        o.r(n);
        var e = o("f8dd"), i = o.n(e);
        for (var a in e) [ "default" ].indexOf(a) < 0 && function(t) {
            o.d(n, t, function() {
                return e[t];
            });
        }(a);
        n.default = i.a;
    },
    d6ae: function(t, n, o) {
        var e = o("2343");
        o.n(e).a;
    },
    d7b4: function(t, n, o) {
        o.d(n, "b", function() {
            return e;
        }), o.d(n, "c", function() {
            return i;
        }), o.d(n, "a", function() {});
        var e = function() {
            this.$createElement;
            this._self._c;
        }, i = [];
    },
    f8dd: function(t, n, o) {
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var e = {
            name: "PopupToast",
            props: {
                value: {
                    type: Boolean,
                    default: !1
                },
                popupPosition: {
                    type: String,
                    default: "top",
                    validator: function(t) {
                        return [ "top", "bottom", "left", "right" ].includes(t);
                    }
                },
                anglePosition: {
                    type: String,
                    default: "50%"
                },
                contentPosition: {
                    type: String,
                    default: "50%"
                },
                autoFade: {
                    type: [ Boolean, Number ],
                    default: !1
                },
                offset: {
                    type: Number,
                    default: 2
                },
                angleSize: {
                    type: String,
                    default: "middle",
                    validator: function(t) {
                        return [ "small", "middle", "big" ].includes(t);
                    }
                },
                theme: {
                    type: String,
                    default: "dark",
                    validator: function(t) {
                        return [ "white", "dark" ].includes(t);
                    }
                },
                content: {
                    type: String
                },
                backgroundColor: {
                    type: String,
                    default: "rgba(34,40,54,0.8)"
                },
                fontColor: {
                    type: String,
                    default: "#fff"
                },
                fontSize: {
                    type: String,
                    default: "28rpx"
                },
                fontWeight: {
                    type: String,
                    default: "500"
                },
                padding: {
                    type: String,
                    default: "24rpx"
                },
                width: {
                    type: String,
                    default: "auto"
                },
                targetWidth: {
                    type: String,
                    default: "auto"
                },
                showClose: {
                    type: Boolean,
                    default: !1
                }
            },
            data: function() {
                return {
                    show: !1
                };
            },
            computed: {
                isShow: {
                    get: function() {
                        return this.value;
                    },
                    set: function(t) {
                        this.$emit("input", t);
                    }
                },
                themeColor: function() {
                    return {
                        dark: {
                            backgroundColor: "#424456",
                            color: "#fff"
                        },
                        white: {
                            backgroundColor: "#fff",
                            color: "#262626"
                        }
                    }[this.theme];
                },
                isAside: function() {
                    return ![ "top", "bottom" ].includes(this.popupPosition);
                },
                contentOffset: function() {
                    return [ "top", "left" ].includes(this.popupPosition) ? "".concat(-(this.offset + 16), "rpx") : "".concat(this.offset + 16, "rpx");
                },
                contentTransform: function() {
                    return this.isAside ? "translateY(-".concat(this.anglePositionNumber, ") translateX(").concat(this.contentOffset, ")") : "translateX(-".concat(this.anglePositionNumber, ") translateY(").concat(this.contentOffset, ")");
                },
                anglePositionNumber: function() {
                    var t = this.anglePosition;
                    return [ "left", "center", "right" ].includes(this.anglePosition) && (t = {
                        left: "20%",
                        center: "50%",
                        right: "20%"
                    }[this.anglePosition]), t;
                },
                anglePositionStyle: function() {
                    return this.isAside ? "\n        top: ".concat(this.anglePositionNumber, ";\n        transform: translateY(-50%);\n        border-").concat(this.popupPosition, "-color: ").concat(this.backgroundColor || this.themeColor.backgroundColor, ";\n      ") : "\n          left: ".concat(this.anglePositionNumber, ";\n          transform: translateX(-50%);\n          border-").concat(this.popupPosition, "-color: ").concat(this.backgroundColor || this.themeColor.backgroundColor, ";\n        ");
                }
            },
            watch: {
                value: function(t) {
                    t ? this.open() : this.handleClose();
                }
            },
            created: function() {},
            methods: {
                handleShow: function() {
                    this.open();
                },
                handleClose: function() {
                    this.isShow = !1;
                },
                open: function() {
                    var t = this, n = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, o = n.autoFade;
                    this.isShow = !0, this.$emit("input", !0);
                    var e = o || this.autoFade;
                    e && setTimeout(function() {
                        t.isShow = !1, t.$emit("input", !1);
                    }, "number" == typeof e ? e : 3e3);
                }
            }
        };
        n.default = e;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "components/popup-toast/index-create-component", {
    "components/popup-toast/index-create-component": function(t, n, o) {
        o("543d").createComponent(o("4a19"));
    }
}, [ [ "components/popup-toast/index-create-component" ] ] ]);